<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script setup lang="ts">
// 这里可以添加全局的逻辑
</script>

<style scoped>
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  height: auto !important;
  line-height: normal !important;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-section h1 {
  font-size: 2rem;
  margin: 0 0 0.25rem 0;
  font-weight: bold;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

.header-menu {
  background: transparent !important;
  border: none !important;
}

:deep(.header-menu .el-menu-item) {
  color: white !important;
  border-bottom: 2px solid transparent !important;
}

:deep(.header-menu .el-menu-item:hover) {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

:deep(.header-menu .el-menu-item.is-active) {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  border-bottom-color: white !important;
}

.main-content {
  background: #f8f9fa;
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.footer {
  background: #343a40;
  color: white;
  text-align: center;
  height: auto !important;
  line-height: normal !important;
  padding: 1rem 0;
}

.footer p {
  margin: 0;
  opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .logo-section h1 {
    font-size: 1.5rem;
  }

  .header-menu {
    width: 100%;
    justify-content: center;
  }
}
</style>
